import request from '@/utils/request'

// 查询有效访问记录列表
export function listEfficAccessRecords(query) {
  return request({
    url: '/system/efficAccessRecords/list',
    method: 'get',
    params: query
  })
}

// 查询有效访问记录详细
export function getEfficAccessRecords(id) {
  return request({
    url: '/system/efficAccessRecords/' + id,
    method: 'get'
  })
}

// 新增有效访问记录
export function addEfficAccessRecords(data) {
  return request({
    url: '/system/efficAccessRecords',
    method: 'post',
    data: data
  })
}

// 修改有效访问记录
export function updateEfficAccessRecords(data) {
  return request({
    url: '/system/efficAccessRecords',
    method: 'put',
    data: data
  })
}

// 删除有效访问记录
export function delEfficAccessRecords(id) {
  return request({
    url: '/system/efficAccessRecords/' + id,
    method: 'delete'
  })
}
